package com.pucong.gitee.database.backup.common.entity.sys.dto;

import com.pucong.gitee.database.backup.common.selfenum.UserRoleTypeEnum;
import com.pucong.gitee.database.backup.common.selfenum.UserStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
* @author pucong
* @company gitee.com/pucong
* @create 2021-10-27
*/
@Data
@ApiModel("用户基础信息")
public class SysUserInfoSaveDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "账号不能为空")
    @ApiModelProperty("账号")
    private String loginName;

    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty("姓名")
    private String userName;

    @ApiModelProperty("角色ids")
    private List<String> roleIds;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty("状态")
    private UserStatusEnum status;
}
